package com.xx.jicheng.mapper;

import com.xx.jicheng.entity.Account;

public interface AccountMapper {
	
	public boolean checkAccountExists(String accountNo);
	
	public boolean checkCellphoneExists(String cellphone);

	public void save(Account account);

	/**
	 * 根据用户身份查询Account
	 * @param principals 用户身份，可以是accountNo或是cellphone
	 * @return 如果查询到返回Account对象，否则返回null
	 */
	public Account findByPrincipals(String principals);

}
